import { AddressCreateDto, AddressListDto, AddressSingleDto, AddressUpdateDto } from '../dtos/address.dto';
import AddressModel from '../models/address.model';
import { PageRequest } from '../types';
import { BaseService } from './.service';

/**
 * 地址服务类
 */
export class AddressService extends BaseService<AddressModel, AddressListDto, AddressSingleDto, AddressCreateDto, AddressUpdateDto> {
  constructor() {
    super(AddressModel, new AddressSingleDto(), new AddressListDto());
  }
}

/**
 * 地址服务实例
 */
export const addressService = new AddressService();
